package com.tenement.mybatis.entity;

import java.io.Serializable;

public class House implements Serializable {
	private Integer hId;

	private Integer uId;

	private String hRentalMethod;

	private String hCommunityName;

	private String hArea;

	private String hRegion;

	private String hLocation;

	private String hSize;

	private Integer hRoom;

	private Integer hHall;

	private Integer hBathroom;

	private Integer hKitchen;

	private String hHeading;

	private Integer hDecoration;

	private String hFloor;

	private Integer hFloorTotal;

	private String hRent;

	private String hPaymethod;

	private String hCaption;

	private String hHighlights;

	private String hPersonname;

	private String hTelephone;

	private Integer hReviewStatus;

	private Integer hRentalStatus;

	private String hPhotoid;

	private static final long serialVersionUID = 1L;

	public House() {
		super();
	}

	public House(String hArea, String hRegion, String hRent, Integer hRoom, String hHeading, Integer hDecoration,
			String hRentalMethod) {
		super();
		this.hRentalMethod = hRentalMethod;
		this.hArea = hArea;
		this.hRegion = hRegion;
		this.hRoom = hRoom;
		this.hHeading = hHeading;
		this.hDecoration = hDecoration;
		this.hRent = hRent;
	}

	public Integer gethId() {
		return hId;
	}

	public void sethId(Integer hId) {
		this.hId = hId;
	}

	public Integer getuId() {
		return uId;
	}

	public void setuId(Integer uId) {
		this.uId = uId;
	}

	public String gethRentalMethod() {
		return hRentalMethod;
	}

	public void sethRentalMethod(String hRentalMethod) {
		this.hRentalMethod = hRentalMethod == null ? null : hRentalMethod.trim();
	}

	public String gethCommunityName() {
		return hCommunityName;
	}

	public void sethCommunityName(String hCommunityName) {
		this.hCommunityName = hCommunityName == null ? null : hCommunityName.trim();
	}

	public String gethArea() {
		return hArea;
	}

	public void sethArea(String hArea) {
		this.hArea = hArea == null ? null : hArea.trim();
	}

	public String gethRegion() {
		return hRegion;
	}

	public void sethRegion(String hRegion) {
		this.hRegion = hRegion == null ? null : hRegion.trim();
	}

	public String gethLocation() {
		return hLocation;
	}

	public void sethLocation(String hLocation) {
		this.hLocation = hLocation == null ? null : hLocation.trim();
	}

	public String gethSize() {
		return hSize;
	}

	public void sethSize(String hSize) {
		this.hSize = hSize == null ? null : hSize.trim();
	}

	public Integer gethRoom() {
		return hRoom;
	}

	public void sethRoom(Integer hRoom) {
		this.hRoom = hRoom;
	}

	public Integer gethHall() {
		return hHall;
	}

	public void sethHall(Integer hHall) {
		this.hHall = hHall;
	}

	public Integer gethBathroom() {
		return hBathroom;
	}

	public void sethBathroom(Integer hBathroom) {
		this.hBathroom = hBathroom;
	}

	public Integer gethKitchen() {
		return hKitchen;
	}

	public void sethKitchen(Integer hKitchen) {
		this.hKitchen = hKitchen;
	}

	public String gethHeading() {
		return hHeading;
	}

	public void sethHeading(String hHeading) {
		this.hHeading = hHeading == null ? null : hHeading.trim();
	}

	public Integer gethDecoration() {
		return hDecoration;
	}

	public void sethDecoration(Integer hDecoration) {
		this.hDecoration = hDecoration;
	}

	public String gethFloor() {
		return hFloor;
	}

	public void sethFloor(String hFloor) {
		this.hFloor = hFloor == null ? null : hFloor.trim();
	}

	public Integer gethFloorTotal() {
		return hFloorTotal;
	}

	public void sethFloorTotal(Integer hFloorTotal) {
		this.hFloorTotal = hFloorTotal;
	}

	public String gethRent() {
		return hRent;
	}

	public void sethRent(String hRent) {
		this.hRent = hRent == null ? null : hRent.trim();
	}

	public String gethPaymethod() {
		return hPaymethod;
	}

	public void sethPaymethod(String hPaymethod) {
		this.hPaymethod = hPaymethod == null ? null : hPaymethod.trim();
	}

	public String gethCaption() {
		return hCaption;
	}

	public void sethCaption(String hCaption) {
		this.hCaption = hCaption == null ? null : hCaption.trim();
	}

	public String gethHighlights() {
		return hHighlights;
	}

	public void sethHighlights(String hHighlights) {
		this.hHighlights = hHighlights == null ? null : hHighlights.trim();
	}

	public String gethPersonname() {
		return hPersonname;
	}

	public void sethPersonname(String hPersonname) {
		this.hPersonname = hPersonname == null ? null : hPersonname.trim();
	}

	public String gethTelephone() {
		return hTelephone;
	}

	public void sethTelephone(String hTelephone) {
		this.hTelephone = hTelephone == null ? null : hTelephone.trim();
	}

	public Integer gethReviewStatus() {
		return hReviewStatus;
	}

	public void sethReviewStatus(Integer hReviewStatus) {
		this.hReviewStatus = hReviewStatus;
	}

	public Integer gethRentalStatus() {
		return hRentalStatus;
	}

	public void sethRentalStatus(Integer hRentalStatus) {
		this.hRentalStatus = hRentalStatus;
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		House other = (House) that;
		return (this.gethId() == null ? other.gethId() == null : this.gethId().equals(other.gethId()))
				&& (this.getuId() == null ? other.getuId() == null : this.getuId().equals(other.getuId()))
				&& (this.gethRentalMethod() == null ? other.gethRentalMethod() == null
						: this.gethRentalMethod().equals(other.gethRentalMethod()))
				&& (this.gethCommunityName() == null ? other.gethCommunityName() == null
						: this.gethCommunityName().equals(other.gethCommunityName()))
				&& (this.gethArea() == null ? other.gethArea() == null : this.gethArea().equals(other.gethArea()))
				&& (this.gethRegion() == null ? other.gethRegion() == null
						: this.gethRegion().equals(other.gethRegion()))
				&& (this.gethLocation() == null ? other.gethLocation() == null
						: this.gethLocation().equals(other.gethLocation()))
				&& (this.gethSize() == null ? other.gethSize() == null : this.gethSize().equals(other.gethSize()))
				&& (this.gethRoom() == null ? other.gethRoom() == null : this.gethRoom().equals(other.gethRoom()))
				&& (this.gethHall() == null ? other.gethHall() == null : this.gethHall().equals(other.gethHall()))
				&& (this.gethBathroom() == null ? other.gethBathroom() == null
						: this.gethBathroom().equals(other.gethBathroom()))
				&& (this.gethKitchen() == null ? other.gethKitchen() == null
						: this.gethKitchen().equals(other.gethKitchen()))
				&& (this.gethHeading() == null ? other.gethHeading() == null
						: this.gethHeading().equals(other.gethHeading()))
				&& (this.gethDecoration() == null ? other.gethDecoration() == null
						: this.gethDecoration().equals(other.gethDecoration()))
				&& (this.gethFloor() == null ? other.gethFloor() == null : this.gethFloor().equals(other.gethFloor()))
				&& (this.gethFloorTotal() == null ? other.gethFloorTotal() == null
						: this.gethFloorTotal().equals(other.gethFloorTotal()))
				&& (this.gethRent() == null ? other.gethRent() == null : this.gethRent().equals(other.gethRent()))
				&& (this.gethPaymethod() == null ? other.gethPaymethod() == null
						: this.gethPaymethod().equals(other.gethPaymethod()))
				&& (this.gethCaption() == null ? other.gethCaption() == null
						: this.gethCaption().equals(other.gethCaption()))
				&& (this.gethHighlights() == null ? other.gethHighlights() == null
						: this.gethHighlights().equals(other.gethHighlights()))
				&& (this.gethPersonname() == null ? other.gethPersonname() == null
						: this.gethPersonname().equals(other.gethPersonname()))
				&& (this.gethTelephone() == null ? other.gethTelephone() == null
						: this.gethTelephone().equals(other.gethTelephone()))
				&& (this.gethReviewStatus() == null ? other.gethReviewStatus() == null
						: this.gethReviewStatus().equals(other.gethReviewStatus()))
				&& (this.gethRentalStatus() == null ? other.gethRentalStatus() == null
						: this.gethRentalStatus().equals(other.gethRentalStatus()));
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((gethId() == null) ? 0 : gethId().hashCode());
		result = prime * result + ((getuId() == null) ? 0 : getuId().hashCode());
		result = prime * result + ((gethRentalMethod() == null) ? 0 : gethRentalMethod().hashCode());
		result = prime * result + ((gethCommunityName() == null) ? 0 : gethCommunityName().hashCode());
		result = prime * result + ((gethArea() == null) ? 0 : gethArea().hashCode());
		result = prime * result + ((gethRegion() == null) ? 0 : gethRegion().hashCode());
		result = prime * result + ((gethLocation() == null) ? 0 : gethLocation().hashCode());
		result = prime * result + ((gethSize() == null) ? 0 : gethSize().hashCode());
		result = prime * result + ((gethRoom() == null) ? 0 : gethRoom().hashCode());
		result = prime * result + ((gethHall() == null) ? 0 : gethHall().hashCode());
		result = prime * result + ((gethBathroom() == null) ? 0 : gethBathroom().hashCode());
		result = prime * result + ((gethKitchen() == null) ? 0 : gethKitchen().hashCode());
		result = prime * result + ((gethHeading() == null) ? 0 : gethHeading().hashCode());
		result = prime * result + ((gethDecoration() == null) ? 0 : gethDecoration().hashCode());
		result = prime * result + ((gethFloor() == null) ? 0 : gethFloor().hashCode());
		result = prime * result + ((gethFloorTotal() == null) ? 0 : gethFloorTotal().hashCode());
		result = prime * result + ((gethRent() == null) ? 0 : gethRent().hashCode());
		result = prime * result + ((gethPaymethod() == null) ? 0 : gethPaymethod().hashCode());
		result = prime * result + ((gethCaption() == null) ? 0 : gethCaption().hashCode());
		result = prime * result + ((gethHighlights() == null) ? 0 : gethHighlights().hashCode());
		result = prime * result + ((gethPersonname() == null) ? 0 : gethPersonname().hashCode());
		result = prime * result + ((gethTelephone() == null) ? 0 : gethTelephone().hashCode());
		result = prime * result + ((gethReviewStatus() == null) ? 0 : gethReviewStatus().hashCode());
		result = prime * result + ((gethRentalStatus() == null) ? 0 : gethRentalStatus().hashCode());
		return result;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", hId=").append(hId);
		sb.append(", uId=").append(uId);
		sb.append(", hRentalMethod=").append(hRentalMethod);
		sb.append(", hCommunityName=").append(hCommunityName);
		sb.append(", hArea=").append(hArea);
		sb.append(", hRegion=").append(hRegion);
		sb.append(", hLocation=").append(hLocation);
		sb.append(", hSize=").append(hSize);
		sb.append(", hRoom=").append(hRoom);
		sb.append(", hHall=").append(hHall);
		sb.append(", hBathroom=").append(hBathroom);
		sb.append(", hKitchen=").append(hKitchen);
		sb.append(", hHeading=").append(hHeading);
		sb.append(", hDecoration=").append(hDecoration);
		sb.append(", hFloor=").append(hFloor);
		sb.append(", hFloorTotal=").append(hFloorTotal);
		sb.append(", hRent=").append(hRent);
		sb.append(", hPaymethod=").append(hPaymethod);
		sb.append(", hCaption=").append(hCaption);
		sb.append(", hHighlights=").append(hHighlights);
		sb.append(", hPersonname=").append(hPersonname);
		sb.append(", hTelephone=").append(hTelephone);
		sb.append(", hReviewStatus=").append(hReviewStatus);
		sb.append(", hRentalStatus=").append(hRentalStatus);
		sb.append(", serialVersionUID=").append(serialVersionUID);
		sb.append("]");
		return sb.toString();
	}

	public String gethPhotoid() {
		return hPhotoid;
	}

	public void sethPhotoid(String hPhotoid) {
		this.hPhotoid = hPhotoid;
	}

}